import request from "@/utils/request";

export const schoolList = (data) => {
  // console.log(data);
  return request({
    url: "/admin.index/schoolList",
    method: "POST",
    data,
  });
};
// addSchool
export const addSchool = (data) => {
  // console.log(data);
  return request({
    url: "/admin.index/addSchool",
    method: "POST",
    data,
  });
};
// 编辑信息 School
export const editSchool = (data) => {
  // console.log(data);
  return request({
    url: "/admin.index/editSchool",
    method: "POST",
    data,
  });
};
// 删除学校delSchool
export const delSchool = (data) => {
  // console.log(data);
  return request({
    url: "/admin.index/delSchool",
    method: "POST",
    data,
  });
};
// 模糊查询searchSchool
export const searchSchool = (data) => {
  // console.log(data);
  return request({
    url: "/admin.index/searchSchool",
    method: "POST",
    data,
  });
};

export const schoolsImport = (parmas) => {
  // console.log(parmas);
  return request({
    url: "/admin.index/schoolsImport",
    method: "POST",
    data: parmas,
  });
};
// 密码重置 resetPassword
export const resetPassword = (parmas) => {
  // console.log(parmas);
  return request({
    url: "/admin.index/resetPassword",
    method: "POST",
    data: parmas,
  });
};
// 学校导出 importSchool
export const importSchool = (parmas) => {
  // console.log(parmas);
  return request({
    url: "/admin.index/importSchool",
    method: "POST",
    data: parmas,
  });
};
export const ceshi = (parmas) => {
  // console.log(parmas);
  return request({
    url: "/api.index/ceshi",
    method: "POST",
    data: parmas,
  });
};
